package com.common;



import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: rover
 * Date: 13-9-17
 * Time: 上午9:19
 * 模版树
 */
public class ComboTree implements java.io.Serializable {

    private String id;
    private String text;// 树节点名称
    private String iconCls;// 前面的小图标样式
    private Boolean checked = false;// 是否勾选状态
    private Map<String, Object> attributes;// 其他参数
    private List<ComboTree> children;// 子节点
    private Boolean expanded =false;// 是否展开(open,closed)
    private Boolean leaf=true;//默认没有子节点  如果不加这句，页面点击节点的时候都要到后台获取数据
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public Map<String, Object> getAttributes() {
        return attributes;
    }

    public void setAttributes(Map<String, Object> attributes) {
        this.attributes = attributes;
    }

    public List<ComboTree> getChildren() {
        return children;
    }

    public void setChildren(List<ComboTree> children) {
        this.children = children;
    }


    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public Boolean getExpanded() {
        return expanded;
    }

    public void setExpanded(Boolean expanded) {
        this.expanded = expanded;
    }

    public Boolean getLeaf() {
        return leaf;
    }

    public void setLeaf(Boolean leaf) {
        this.leaf = leaf;
    }
}
